/*
 * #Author: LiZhiWei
 * #Date: 2025-07-17 16:26:20
 * #LastEditors: wjc
 * #LastEditTime: 2025-10-28 10:21:37
 * #Description:
 */
const oneWoRouter = [
  {
    path: '/one-wo',
    name: 'OneWo',
    redirect: '/one-wo/one-wo-htmls',
    meta: { title: '万物', icon: 'i-custom-platform' },
    children: [
      {
        path: 'one-wo-htmls',
        name: 'OneWoIndex',
        component: () => import('#/views/one-wo/one-wo-html/index.vue'),
        meta: {
          title: '万物管理',
          icon: 'i-custom-platform',
          actions: ['one-wo-one-wo-html-index'],
        },
      },
      {
        path: 'one-wo-htmls-trashed',
        name: 'OneWoTrashed',
        component: () => import('#/views/one-wo/one-wo-html/trashed.vue'),
        meta: {
          title: '万物回收站',
          icon: 'i-custom-platform',
          hidden: true,
          activeMenu: '/one-wo/one-wo-htmls',
          actions: ['one-wo-one-wo-html-trashed'],
        },
      },
      {
        path: 'one-wo-htmls/:id',
        name: 'OneWoShow',
        component: () => import('#/views/one-wo/one-wo-html/show.vue'),
        meta: {
          title: '万物详情',
          icon: 'i-custom-platform',
          hidden: true,
          activeMenu: '/one-wo/one-wo-htmls',
          actions: ['one-wo-one-wo-html-show'],
        },
      },
      {
        path: 'one-wo-job-types',
        name: 'OneWoJobTypeIndex',
        component: () => import('#/views/one-wo/one-wo-job-type/index.vue'),
        meta: {
          title: '作业类型管理',
          icon: 'i-custom-platform',
          actions: ['one-wo-one-wo-job-type-index'],
        },
      },
      {
        path: 'one-wo-job-types-trashed',
        name: 'OneWoJobTypeTrashed',
        component: () => import('#/views/one-wo/one-wo-job-type/trashed.vue'),
        meta: {
          title: '作业类型回收站',
          icon: 'i-custom-platform',
          hidden: true,
          activeMenu: '/one-wo/one-wo-job-types',
          actions: ['one-wo-one-wo-job-type-trashed'],
        },
      },
      {
        path: 'one-wo-spaces',
        name: 'OneWoSpaceIndex',
        component: () => import('#/views/one-wo/one-wo-space/index.vue'),
        meta: {
          title: '空间管理',
          icon: 'i-custom-platform',
          actions: ['one-wo-one-wo-space-index'],
        },
      },
      {
        path: 'one-wo-spaces-trashed',
        name: 'OneWoSpaceTrashed',
        component: () => import('#/views/one-wo/one-wo-space/trashed.vue'),
        meta: {
          title: '空间回收站',
          icon: 'i-custom-platform',
          hidden: true,
          activeMenu: '/one-wo/one-wo-spaces',
          actions: ['one-wo-one-wo-space-trashed'],
        },
      },
      {
        path: 'one-wo-job-objects',
        name: 'OneWoJobObjectIndex',
        component: () => import('#/views/one-wo/one-wo-job-object/index.vue'),
        meta: {
          title: '作业对象管理',
          icon: 'i-custom-platform',
          actions: ['one-wo-one-wo-job-object-index'],
        },
      },
      {
        path: 'one-wo-job-objects-trashed',
        name: 'OneWoJobObjectTrashed',
        component: () => import('#/views/one-wo/one-wo-job-object/trashed.vue'),
        meta: {
          title: '作业对象回收站',
          icon: 'i-custom-platform',
          hidden: true,
          activeMenu: '/one-wo/one-wo-job-objects',
          actions: ['one-wo-one-wo-job-object-trashed'],
        },
      },
    ],
  },
]

export default oneWoRouter
